/*
 * HomePage.java
 *
 * Created on 2009年12月26日, 下午 3:42
 */
 
package edu.chc.hhsh.ext;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.*;
import org.apache.wicket.model.PropertyModel;

public class HomePage extends WebPage {

    private String message = "請輸入文字!!";
    
    public HomePage() {

        // This model references the page's message property and is
        // shared by the label and form component
        //PropertyModel<String> messageModel = new PropertyModel<String>(this, "message");
        Form form = new Form("form");

        form.add(new TextField("keywords"));
        form.add(new Label("msg",message));
        
        add(form);
    }

        /**
     * @return the message
     */
    public String getMessage()
    {
        return message;
    }

    /**
     * @param message
     *            the message to set
     */
    public void setMessage(String message)
    {
        this.message = message;
    }
}
